import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:gczn_hd/app/core/base/base_view.dart';
import 'package:gczn_hd/app/core/values/app_colors.dart';
import 'package:gczn_hd/app/core/values/app_values.dart';
import 'package:gczn_hd/app/core/widget/custom_app_bar.dart';
import 'package:gczn_hd/app/modules/ppm/station/widget/process_list.dart';
import 'package:gczn_hd/app/modules/ppm/station/widget/station_handle.dart';
import 'package:gczn_hd/app/modules/ppm/station/widget/station_list.dart';

import 'package:get/get.dart';

import '../../../../core/values/text_styles.dart';
import '../controllers/station_controller.dart';

class StationView extends BaseView<StationController> {



  @override
  PreferredSizeWidget? appBar(BuildContext context) => const CustomAppBar(appBarTitleText: "工位执行",);
  

  @override
  Widget body(BuildContext context) {
    
    return Container(
      padding: EdgeInsets.all(AppValues.margin_20.w),
      alignment: Alignment.topLeft,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          SizedBox(
            width: double.infinity,
            child: ProcessList(),
          ),
          SizedBox(height: AppValues.size20.h,),
          Expanded(
            flex: 1,
            child: Row(
              crossAxisAlignment: CrossAxisAlignment.stretch,
              children: [
                StationList(),
                Expanded(
                  flex: 1,
                  child: StationHandle(),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
  
}
